package com.bins.springboot.dubbo.consumer.controller;

import org.apache.dubbo.config.annotation.DubboReference;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import com.bins.springboot.dubbo.api.UserApi;

@RestController
public class HelloController {
	
	@DubboReference
	private UserApi userApi;
	
	@RequestMapping("/hello")
	public String helloWorld() {
		return userApi.sayHello("Andy");
	}

}
